<template name="postsList">

    <div class="btn-group btn-group-sm type" role="group" aria-label="...">
        <button id="popularBtn" type="button" class="btn btn-default active">最热</button>
        <button id="newBtn" type="button" class="btn btn-default">最新</button>
    </div>

    <div class="posts">
        {{#each posts}}
            {{> postItem}}
        {{/each}}
        {{#if nextPath}}
            <a class="load-more" href="{{nextPath}}">加载更多</a>
        {{else}}
            {{#unless ready}}
                {{> spinner}}
            {{/unless}}
        {{/if}}
    </div>
</template>